﻿<!--<?php
require_once template('header'); 
print <<< EOT
<!--右边开始-->
<script type="text/javascript">
function PrintPage()
{
    if(confirm("确定打印吗?"))
	{
	    window.print();
	}
}
</script>
<div id="right">
	<table class="clst" align="center" cellpadding="0" cellspacing="1">
		<tr>
			<td class="tleft">$lang[procurement]</td>
			<td class="tright"><span class="red">$lang[order_number]: $order_info[ordersn]</span></td>
		</tr>
	</table>
	<table cellpadding="0" cellspacing="1" class="list" id="goods_list">
		<tr>
			<th width="28%">$lang[trade_names]</th>
			<th width="27%">属性/编码</th>
			<th width="15%">$lang[purchase_price]</th>
			<th width="10%">$lang[amount]</th>
            <th width="10%">重 量</th>
			<th width="10%">赠送积分</th>
		</tr>
<!--
EOT;
foreach ($goods as $val){
print <<<EOT
-->		
		<tr  id="r$val[uid]">
			<td class="td1"><a href="#">$val[goods_name]<span style="width:auto;"><img src="$val[goods_file1]" /></span></a><p class="cpsm">编码: $val[goods_code]</p></td>
			<td>
			<p class="cpsm">$val[goods_attr]</p>
			</td>
			<td><span class="tip">$val[buy_price]</span></td>
			<td><span class="tip">$val[buy_number]</span></td>
			<td>$val[goods_kg]</td>
			<td>$val[goods_point]</td>
		</tr>
<!--
EOT;
} print <<<EOT
-->				
		<tr><td colspan="7">$lang[total_amount]: <span id="goods_amount">$goods_amount</span> + $lang[transportation_costs]: <span id="goods_ship">$sh_exes</span> + $lang[packaging_costs]: $cas_exes +  发票税额 : <span id="cess_price">$cess_price</span> - 折扣金额：$discount = 订单总金额：<span class="red" id="order_price">$order_amount</span></td>
		</tr>
		<tr><td colspan="7" style="text-align:right;"> <a href="javascript:;" onclick="javascript:PrintPage();" id="add_goods">打印</a> $lang[total_merchandise]: <span id="goods_nums">{$goods_rt['sum']['nums']}</span> $lang[total_points]: <span class="tip_point" id="goods_point">{$goods_rt['sum']['point']} </span></td>
		</tr>
	</table>
	
		
	<table cellpadding="0" cellspacing="1" class="list1" style="margin-top:10px;">
		<tr><th colspan="2">$lang[ordering_info]</th>
		</tr>
		<tr>
			<td class="td_left2">$lang[order]</td>
			<td>$order_info[username]</td>
		</tr>
		<tr>
			<td class="td_left2">$lang[mobile_phone]</td>
			<td>$order_info[buy_tel] / $order_info[buy_mobile]</td>
		</tr>
		<tr>
			<td class="td_left2">$lang[zip]</td>
			<td>$order_info[buy_zipcode]</td>
		</tr>
		<tr>
			<td class="td_left2">$lang[address]</td>
			<td>$order_info[buy_address]</td>
		</tr>
		<tr>
			<td class="td_left2">$lang[email]</td>
			<td>$order_info[buy_email]</td>
		</tr>
		<tr>
			<td class="td_left2">$lang[first_invoice]</td>
			<td>$order_info[invoice]</td>
		</tr>
		<tr>
			<td class="td_left2">$lang[note_message]</td>
			<td>$order_info[remark]</td>
		</tr>
	</table>
	
		
	<table cellpadding="0" cellspacing="1" class="list1">
		<tr><th colspan="2">$lang[consignee_information]</th>
		</tr>
		<tr>
			<td class="td_left2">$lang[name_email]</td>
			<td>$order_info[consignee] / $order_info[email]</td>
		</tr>
		<tr>
			<td class="td_left2">$lang[mobile_phone]</td>
			<td>$order_info[tel] / $order_info[mobile]</td>
		</tr>
		<tr>
			<td class="td_left2">$lang[zip]</td>
			<td>$order_info[zipcode]</td>
		</tr>
		<tr>
			<td class="td_left2">$lang[receiving_address]</td>
			<td>$order_info[address]</td>
		</tr>
		<tr>
			<td class="td_left2">$lang[single_shipment]</td>
			<td>$order_info[delivery_code]</td>
		</tr>
	</table>
	
		
	<table cellpadding="0" cellspacing="1" class="list1">
		<tr><th colspan="2">$lang[billing_information]</th>
		</tr>
		<tr>
			<td class="td_left2">$lang[state_orders]</td>
			<td>$order_menu</td>
		</tr>
		<tr>
			<td class="td_left2">$lang[distribution_methods]</td>
			<td>$order_info[sh_name]</td>
		</tr>
		<tr>
			<td class="td_left2">$lang[packaging_choice]</td>
			<td>$order_info[cas_name]</td>
		</tr>
		<tr>
			<td class="td_left2">$lang[payment]</td>
			<td>$order_info[pay_name]</td>
		</tr>
		<tr>
			<td class="td_left2">$lang[total_yuan]</td>
			<td>$order_info[order_amount]</td>
		</tr>
	</table>	
</div>
<!-- end -->
<!--
EOT;
?>-->